import request from "@/utils/request";
import qs from 'qs'

export function operLogList(query){
  return request({
    url:'/admin/operlog/list',
    method:'get',
    params:query
  })
}

//删除日志
export function deleteOperLog(ids){
  const query = {
    ids:ids
  }
  return request({
    url:'/admin/operlog/deleteLogs',
    method:'delete',
    params:query,
    paramsSerializer:function (params) {
      return  qs.stringify(params,{ arrayFormat: "repeat" })
    }
  })
}

//清空日志
export function clearLog(){
  return request({
    url:'/admin/operlog/clearLog',
    method:'delete'
  })
}
